# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-zodb
_pkgname=ZODB
pkgver=6.0.1
pkgrel=1
pkgdesc='A native object database for Python.'
arch=('any')
url='https://pypi.org/project/ZODB/'
license=('ZPL')
depends=('python' 'python-persistent' 'python-zodbpickle' 'python-transaction'
         'python-btrees')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/ZODB-$pkgver.tar.gz")
sha512sums=('d07b526dbd85aa1c54e2a3037b12cae070b60339212fd52c8e04fde17aa56e1f9a2172f0d51ad55b87ae509a49cfc206badcd3d5f7af89b931eac1ec4bdb1d7e')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}
